package com.example.xzc.cainiaoshangcheng.Adapter;

import android.content.Context;

import com.example.xzc.cainiaoshangcheng.Bean.Test3Bean;
import com.example.xzc.cainiaoshangcheng.R;
import com.example.xzc.cainiaoshangcheng.ViewHolder.BaseViewHolder;

import java.util.List;

/**
 * @projectName: CaiNiaoShangCheng    ---------> 项目名称
 * @description: --------->描述
 * @author: xzc                              --------->作者
 * @date: 2017-03-14    --------->日期
 * @time: 18:53               --------->时间
 */

public class Test3Adapter extends BaseAdapter<Test3Bean,BaseViewHolder> {

    public Test3Adapter(List<Test3Bean> datas, Context context) {
        super(datas, context, R.layout.item_cb);
    }

    @Override
    public void bindDatas(BaseViewHolder holder, Test3Bean test3Bean) {
        holder.findCheckBox(R.id.cb_item).setChecked(test3Bean.isCheck());
        holder.findTextView(R.id.tv1_item).setText(test3Bean.getName());
    }
}
